package demo;

import java.util.Comparator;

public class pcb {
    static class CompareTime implements Comparator<pcb> {
        public int compare(pcb p1, pcb p2) {
            return p2.rank.compareTo(p1.rank);
        }
    }

    public String name;
    public String time;
    public String rank;
    public pcb() {

    }


    public pcb(String name,String time,String rank) {
        this.name=name;
        this.rank=rank;
        this.time=time;
    }


}


